home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip: 2005 Utilities
/
CHIP Utilities 2005.7z
/
CHIP Utilities 2005.iso
/
images
/
arachne.igz
/
arachne.img
/
LEVEL0
/
UTILZ.CAB
/
bin
/
Cachesz.bat
< prev
next >
Wrap
DOS Batch File
|
2005-01-16
|
1KB
|
44 lines
@if "%debug%"=="" echo off
:: Cachesz Begin::
if not "%cachesz%"=="" goto _end
if not exist %ramdrv%\bin\mem.* goto _end
if not exist %ramdrv%\bin\lmod.com goto _end
if not exist %ramdrv%\bin\tfind.com goto _end
if not exist %ramdrv%\bin\varset.com goto _end
for %%i in (%tmp%\_cachesz.*) do if exist %%i del %%i >%tmp%\nul
mem | tfind.com "Extended" "XMS" >%tmp%\_cachesz.bak
if errorlevel 1 goto _end
lmod /S) [$!]<%tmp%\_cachesz.bak >%tmp%\_cachesz.tmp
lmod /S. [$1:!]<%tmp%\_cachesz.tmp >%tmp%\_cachesz.bak
tfind "k" <%tmp%\_cachesz.bak >%tmp%\nul
if errorlevel 1 goto _no_k
lmod /SkK [$1]<%tmp%\_cachesz.bak >%tmp%\_cachesz.tmp
goto _nomema
:_no_k
tfind "m" <%tmp%\_cachesz.bak >%tmp%\nul
if errorlevel 1 goto _no_m
lmod /SmM [$1],000<%tmp%\_cachesz.bak >%tmp%\_cachesz.tmp
goto _nomema
:_no_m
tfind "g" <%tmp%\_cachesz.bak >%tmp%\nul
if errorlevel 1 goto _no_g
lmod /SgG [$1],000,000<%tmp%\_cachesz.bak >%tmp%\_cachesz.tmp
goto _nomema
:_no_g
:_nomema
set _cachesz=
lmod /S., set _cachesz=[$1][$2][$3]<%tmp%\_cachesz.tmp >%tmp%\_cachesz.bat
call %tmp%\_cachesz.bat
varset x=%_cachesz%-18000 >%tmp%\nul
if errorlevel 1 goto _end
set cachesz=6144
goto _end
:_end
for %%i in (%tmp%\_cachesz.*) do if exist %%i del %%i >%tmp%\nul
set _cachesz=
:: Cachesz End ::